import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/mine/xin_he_mine_real_name_auth/xin_he_ocr_model_entity.dart';

XinHeOcrModelEntity $XinHeOcrModelEntityFromJson(Map<String, dynamic> json) {
	final XinHeOcrModelEntity xinHeOcrModelEntity = XinHeOcrModelEntity();
	final String? idcard = jsonConvert.convert<String>(json['idcard']);
	if (idcard != null) {
		xinHeOcrModelEntity.idcard = idcard;
	}
	final String? sex = jsonConvert.convert<String>(json['sex']);
	if (sex != null) {
		xinHeOcrModelEntity.sex = sex;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeOcrModelEntity.name = name;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		xinHeOcrModelEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		xinHeOcrModelEntity.code = code;
	}
	final String? address = jsonConvert.convert<String>(json['address']);
	if (address != null) {
		xinHeOcrModelEntity.address = address;
	}
	final String? race = jsonConvert.convert<String>(json['race']);
	if (race != null) {
		xinHeOcrModelEntity.race = race;
	}
	final String? birthday = jsonConvert.convert<String>(json['birthday']);
	if (birthday != null) {
		xinHeOcrModelEntity.birthday = birthday;
	}
	final int? retCode = jsonConvert.convert<int>(json['ret_code']);
	if (retCode != null) {
		xinHeOcrModelEntity.retCode = retCode;
	}
	return xinHeOcrModelEntity;
}

Map<String, dynamic> $XinHeOcrModelEntityToJson(XinHeOcrModelEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['idcard'] = entity.idcard;
	data['sex'] = entity.sex;
	data['name'] = entity.name;
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['address'] = entity.address;
	data['race'] = entity.race;
	data['birthday'] = entity.birthday;
	data['ret_code'] = entity.retCode;
	return data;
}